//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.anji.plus.gaea.curd.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
public class GaeaBaseEntity implements BaseEntity {
    @TableId(
            value = "\"id\"",
            type = IdType.ASSIGN_UUID
    )
    private String id;
    @TableField(
            value = "\"create_by\"",

            fill = FieldFill.INSERT
    )
    private String createBy;
    @TableField(
            value = "\"create_time\"",
            fill = FieldFill.INSERT
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    @TableField(
            value = "\"update_by\"",
            fill = FieldFill.INSERT_UPDATE
    )
    private String updateBy;
    @TableField(
            value = "\"update_time\"",
            fill = FieldFill.INSERT_UPDATE
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateTime;
    @TableField(
            value = "\"version\"",
            fill = FieldFill.INSERT_UPDATE,
            update = "%s+1"
    )
    @Version
    private Integer version;
    @TableField(
            exist = false
    )
    @JsonIgnore
    private Integer rowIndex;

}
